package org.raymond.iworks.study.basic.designpattern.strategy.improve;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class ToyDuck extends Duck {

    public ToyDuck(){
        flyBehavior = new NoFlyBehavior();
    }
    @Override
    public void disply() {
        System.out.println("这是玩具鸭");
    }
    public void quack(){
        System.out.println("玩具鸭不能叫");
    }
    public void swim(){
        System.out.println("玩具鸭不能游泳");
    }
}
